import React from 'react'
import { Switch, Route, /*Redirect,*/ } from 'react-router-dom'
import Main from '@/pages/Main/Main'
import Login from '@/pages/Login/Login'
import NotFound from '@/pages/NotFound/NotFound'

class Routers extends React.Component {
  render() {
    return (
      <Switch>
        <Route path="/" component={Main} />
        <Route path="/login" component={Login} />
        <Route path="*" component={NotFound} />
      </Switch>
    )
  }
}

export default Routers
